package com.shop.coupon.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shop.coupon.domain.CouponHistory;
import com.shop.coupon.domain.vo.CouponHistoryVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CouponHistoryMapper extends BaseMapper<CouponHistory> {
    //注册赠送优惠券
    Integer couponHistoryGift(CouponHistory couponHistory);

    //手动领取优惠券
    Integer couponDrawDown(CouponHistory couponHistory);

    Integer couponNumUpd(@Param("id") Long id);

    List<CouponHistory> selectList(@Param("memberId") Long memberId);
}
